package entity;

import com.sun.corba.se.impl.interceptors.PICurrent;
import javafx.geometry.Pos;
import org.omg.CORBA.PUBLIC_MEMBER;

import java.util.Date;

/**
 * 帖子信息
 */
public class Postinfo {
    private int pid;//编号
    private int ucode; //用户编号：外键

    private String pgood;//--点赞量
    private String prelay; //--转发量
    private String ptype; //--帖子类型	1：公开2：私有
    private Date utime;//--发帖时间：默认当前时间

    private String text; //--文本
    private String timg;//--图片

    private String uname; //用户名
    private String uid;//--账号
    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public int getUcode() {
        return ucode;
    }

    public void setUcode(int ucode) {
        this.ucode = ucode;
    }

    public String getPgood() {
        return pgood;
    }

    public void setPgood(String pgood) {
        this.pgood = pgood;
    }

    public String getPrelay() {
        return prelay;
    }

    public void setPrelay(String prelay) {
        this.prelay = prelay;
    }

    public String getPtype() {
        return ptype;
    }

    public void setPtype(String ptype) {
        this.ptype = ptype;
    }

    public Date getUtime() {
        return utime;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getTimg() {
        return timg;
    }

    public void setTimg(String timg) {
        this.timg = timg;
    }

    public void setUtime(Date utime) {
        this.utime = utime;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public Postinfo() {

    }

    public Postinfo(int pid, int ucode, String pgood, String prelay, String ptype, Date utime) {
        this.pid = pid;
        this.ucode = ucode;
        this.pgood = pgood;
        this.prelay = prelay;
        this.ptype = ptype;
        this.utime = utime;
    }

    public Postinfo(int pid, int ucode, String pgood, String prelay, String ptype, Date utime, String text, String timg) {
        this.pid = pid;
        this.ucode = ucode;
        this.pgood = pgood;
        this.prelay = prelay;
        this.ptype = ptype;
        this.utime = utime;
        this.text = text;
        this.timg = timg;
    }

    public Postinfo(int pid, int ucode, String pgood, String prelay, String ptype, Date utime, String text, String timg, String uname, String uid) {
        this.pid = pid;
        this.ucode = ucode;
        this.pgood = pgood;
        this.prelay = prelay;
        this.ptype = ptype;
        this.utime = utime;
        this.text = text;
        this.timg = timg;
        this.uname = uname;
        this.uid = uid;
    }
}
